/*  These structures described in IEEE P1363 Nov. 1997  */

typedef struct
{
	CURVE	crv;
	POINT	pnt;
	FIELD2N	pnt_order;
	FIELD2N	cofactor;
} EC_PARAMETER;

typedef struct
{
	FIELD2N	prvt_key;
	POINT	pblc_key;
} EC_KEYPAIR;

typedef struct 
{
	FIELD2N		c;
	FIELD2N		d;
} SIGNATURE;

/* prototypes */

extern void sha_memory();
extern void random_field();
void print_int();
INDEX int_onecmp();
void gen_MO_pair();
void poly_ECKGP();
void poly_Massey_Omura_rcv();
void poly_Massey_Omura_send();
void poly_NR_Signature();
int poly_NR_Verify();
void poly_mqv();
void poly_DSA_Signature();
int poly_DSA_Verify();
void hash_to_int();
